package com.jzr.medical.db1.model;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.jzr.medical.common.LayEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
 * <p>
 * 用户日志
 * </p>
 *
 * @author henry
 * @since 2019-08-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="TUserLog对象", description="用户日志")
public class TUserLog extends LayEntity<Long> {
    private static final long serialVersionUID = 1L;
    public static final String TableName = "t_user_log";
    public static final String Id_ = "id";
    public static final String UserId_ = "user_id";
    public static final String LoginTime_ = "login_time";
    public static final String LoginIp_ = "login_ip";
    public static final String FunctionCode_ = "function_code";
    public static final String LogDesc_ = "log_desc";
    public static final String Remark_ = "remark";
    public static final String UpdateTime_ = "update_time";
    public static final String UpdateBy_ = "update_by";


    @ApiModelProperty(value = "日志id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户编码")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "登陆时间")
    @TableField("login_time")
    private LocalDateTime loginTime;

    @ApiModelProperty(value = "登陆ip")
    @TableField("login_ip")
    private String loginIp;

    @ApiModelProperty(value = "功能模块代码")
    @TableField("function_code")
    private String functionCode;

    @ApiModelProperty(value = "活动日志")
    @TableField("log_desc")
    private String logDesc;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "更新人")
    @TableField("update_by")
    private Integer updateBy;


}
